
const mongoose = require('mongoose');
mongoose.set('useFindAndModify', false)


const storesSchema = new mongoose.Schema({
    name: String, // 名称
    address: String, // 地址
    tel: String, // 电话
    business: Boolean, // 营业状态
    time: String, // 营业时间
    status: String, // 状态（申请中/已通过/未通过）
    hasDistribution: Boolean, //是否可以配送
    distributionId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "shop-distribution"
    }, //配送人员 id

});

mongoose.model('shop-stores', storesSchema, "shop-stores");
